package com.aspose.cells;

public class CustomPropertyCollection extends CollectionBase {
   public int add(String name, String value) {
      for(int var3 = 0; var3 < this.getCount(); ++var3) {
         if (com.aspose.cells.b.a.zv.b(this.get(var3).getName(), name)) {
            this.get(var3).setValue(value);
            return var3;
         }
      }

      CustomProperty var4 = new CustomProperty();
      var4.setName(name);
      var4.setValue(value);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
      return this.a.size() - 1;
   }

   public CustomProperty get(int index) {
      return (CustomProperty)this.a.get(index);
   }

   public CustomProperty get(String name) {
      for(int var2 = 0; var2 < this.getCount(); ++var2) {
         if (com.aspose.cells.b.a.zv.b(this.get(var2).getName(), name)) {
            return this.get(var2);
         }
      }

      return null;
   }
}
